package ling.tengfei.service;

import java.util.List;

import link.tengfei.bean.AdminUser;
import link.tengfei.dao.AdminListDao;
import link.tengfei.dao.AdminListDaoImpl;

public class AdminListServiceImpl implements AdminListService {
	AdminListDao adminListDao = new AdminListDaoImpl();

	@Override
	public int findNum() {
		return adminListDao.findNum();
	}

	@Override
	public List<AdminUser> findByPage(int page) {
		return adminListDao.findByPage(page);
	}

	@Override
	public List<AdminUser> findByName(int page, String name) {
		// TODO 自动生成的方法存根
		return adminListDao.findByName(page, name);
	}

	@Override
	public int findNumByName(String name) {
		// TODO 自动生成的方法存根
		return adminListDao.findNumByName(name);
	}

	@Override
	public int resetPwdById(int id) {
		return adminListDao.resetPwdById(id);
	}

	@Override
	public int delete(int id, int state) {
		return adminListDao.delete(id, state);
	}

	@Override
	public int getStateById(int id) {
		// TODO 自动生成的方法存根
		return adminListDao.getStateById(id);
	}

	@Override
	public AdminUser findUserById(int id) {
		return adminListDao.findUserById(id);
	}

}
